// package: learn-go
// filename: main
// author: Administrator@gmail.com
// time: 2023/8/9 17:17
package main

import (
	"context"
	"github.com/sourcegraph/run"
	"log"
	"os"
)

func main() {

	ctx, _ := context.WithCancel(context.Background())

	cmd := run.Bash(ctx, `node`, `--version`)

	if err := cmd.Run().Stream(os.Stdout); err != nil {
		log.Fatal(err)
	}

}
